#ifndef __COMM_THREAD_H__
#define __COMM_THREAD_H__

#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "comm_sync.hpp"

class CommThread {
public:
	pthread_t create(void *threadfunc, void *argp, int argsize);

private:
	pthread_t thd;
	CommMutex mutex;
	static void threadFun(void *);
};

#endif /* THREAD_H_ */
